﻿using System.Windows.Forms;
using TSites.GUI.Enums;

namespace TSites.GUI
{
	public sealed class ChildFormFactory
	{
		public static Form Instance(CHILD_FORM childEnum)
		{
			Form childForm = null;
			switch (childEnum)
			{
				case CHILD_FORM.Company:
					childForm = new frmCompany();
					break;

				case CHILD_FORM.ImmanuelInfo:
					childForm = new frmImmanuelInfo();
					break;

				case CHILD_FORM.About:
					childForm = new frmAbout();
					break;

				case CHILD_FORM.Introduction:
					childForm = new frmIntroduction();
					break;

				default:
					break;
			}

			return childForm;
		}
	}
}
